﻿<%@ Page Title="分配用户角色" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AssignUserRole.aspx.cs" Inherits="OUSMS.AssignUserRole" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="topchannel">
        分配用户角色		 
    </div>
    <asp:FormView ID="userInfoFormView" runat="server" Width="100%"
        ItemType="OUSMS.AppLogic.DataAccessLayer.Users"
        SelectMethod="GetUsersByID">
        <ItemTemplate>
            <table class="table1" border="0" cellspacing="1" cellpadding="2">
                <tr class="row1">
                    <td style="width: 15%"><b>登录名</b></td>
                    <td style="width: 35%"><%# Item.LoginName %></td>
                    <td style="width: 15%"><b>注册时间</b></td>
                    <td style="width: 35%"><%# Item.CreateDateTime.ToString("yyyy-MM-dd HH:mm") %></td>
                </tr>
                <tr class="row2">
                    <td><b>性别</b></td>
                    <td><%# Item.Gender %></td>
                    <td><b>姓名</b></td>
                    <td><%# Item.Name %></td>
                </tr>
                <tr class="row1">
                    <td><b>邮件</b></td>
                    <td><%# Item.Email %></td>
                    <td><b>电话</b></td>
                    <td><%# Item.Phone %></td>
                </tr>
                <tr class="row2">
                    <td><b>职称</b></td>
                    <td><%# Item.Titles.Name %></td>
                    <td><b>职务</b></td>
                    <td><%# Item.Position %></td>
                </tr>
                <tr class="row1">
                    <td><b>一级部门</b></td>
                    <td><%# Item.Departments.Name %></td>
                    <td><b>二级部门</b></td>
                    <td><%# Item.SecondDepartments.Name %></td>
                </tr>
                <tr class="row2">
                    <td colspan="4"><b>个人介绍</b></td>
                </tr>
                <tr class="row1">
                    <td colspan="4"><%# Item.Introduction %></td>
                </tr>
                <tr class="row2">
                    <td colspan="4"><b>选择用户角色</b></td>
                </tr>
                <tr class="row1">
                    <td colspan="4" align="left">
                        <asp:CheckBoxList ID="roleList" runat="server" RepeatDirection="Vertical" RepeatLayout="Table">
                            <asp:ListItem Text="科研提案人" Value="科研提案人" Selected="True" Enabled="false"></asp:ListItem>
                            <asp:ListItem Text="评审专家" Value="评审专家"></asp:ListItem>
                            <asp:ListItem Text="部门负责人" Value="部门负责人"></asp:ListItem>
                            <asp:ListItem Text="校领导" Value="校领导"></asp:ListItem>
                            <asp:ListItem Text="科研处管理人" Value="科研处管理人"></asp:ListItem>
                        </asp:CheckBoxList>
                    </td>
                </tr>
                <tr class="row2">
                    <td colspan="4" align="center" style="font-weight: bold">
                        <asp:Button ID="submitBtn" runat="server" BackColor="Gray" Text="确   认" Width="80px" Height="25px" OnClick="submitBtn_Click" /></td>
                </tr>
                <tr class="row1">
                    <td colspan="4">
                        <asp:Label ID="errorMsgLbl" runat="server" Visible="false" ForeColor="Red" BorderColor="Red"
                            BorderWidth="1px" BorderStyle="Solid" Width="100%" CssClass="validationsummary"></asp:Label>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:FormView>
</asp:Content>
